home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc A) / Acorn User China CD-ROM (UK) (Disc A).bin / DEMON / MISC / NETLITE2.ARC / NET / c / IFACE < prev    next >
Encoding:
Text File  |  1993-03-03  |  353 b   |  16 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3. #include "global.h"
  4. #include "iface.h"
  5. #include "misc.h"
  6.  
  7. struct interface *if_lookup(char *name)
  8. {
  9.         register struct interface *iface;
  10.  
  11.         for(iface = ifaces; iface != NULLIF; iface = iface->next)
  12.                 if(strcmp(iface->name,name) == 0)
  13.                         break;
  14.         return iface;
  15. }
  16.